Skip to content

Exported ability to set GRT seed in a flow variable#4372

Open
jeffng-or wants to merge 1 commit into
The-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:enable-grt-seed
Open

Exported ability to set GRT seed in a flow variable#4372
jeffng-or wants to merge 1 commit into
The-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:enable-grt-seed

Conversation

@jeffng-or

Copy link
Copy Markdown
Contributor

Was interested in running a seed sweep using the AutoTuner, so enabling the ability to set the GRT seed through a flow variable.

@eder-matheus is this the proper way to do this in GRT?

@maliberty FYI. I ran idecode through a six seed sweep and am running is_int through the same.

@jeffng-or jeffng-or self-assigned this Jul 21, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new configuration variable, GRT_SEED, which allows users to specify a random seed for global routing. The changes include documenting the new variable in FlowVariables.md, defining its schema in variables.json and variables.yaml, and implementing the logic in global_route.tcl to apply the seed using set_global_routing_random during the global routing stage. There are no review comments, and I have no additional feedback to provide.

Comment thread flow/scripts/variables.yaml Outdated
- grt
GRT_SEED:
description: >
Global route seed

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is rather terse

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to match GPL_RANDOM_SEED description. Note that https://openroad.readthedocs.io/en/latest/main/src/grt/README.html#set-global-routing-randomness doesn't say much either.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see a new commit - forgot to push or label?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot to resync to public. Will do so after latest change goes through private CI.

tclfmt fix
Updated variables.json
updated GRT_SEED desc
minor tweak to trigger Jenkins

Signed-off-by: Jeff Ng <jeffng@precisioninno.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants